import request from "@/api/index"

export default{
  /**
   * @description: 添加称重 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/batch/weightRecord/add"
    return request.post(url,params)
  },
  /**
   * @description: 修改称重 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/batch/weightRecord/edit"
    return request.post(url,params)
  },
  /**
   * @description: 单个删除称重 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delListById(params){
    const url = "/batch/weightRecord/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 批量删除称重 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
  delById(params){
    const url = "/batch/weightRecord/delById"
    return request.get(url,params)
  },
  /**
   * @description: 获取指定批次的称重记录(未关联投塘记录) *代表必填
   * @param {String/Number} productionBatchId *
   * @return {Object}
   */
  queryListByBatchId(params){
    const url = "/batch/weightRecord/queryListByBatchId"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {String/Number} productionBatchId *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "/batch/weightRecord/queryByCondition"
    return request.get(url,params)
  },
  /**
   * @description: 分页查询称重 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/batch/weightRecord/queryPageByCondition"
    return request.post(url,params)
  },
}